<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="/WEB-INF/tlds/spring.tld"%>
<%@ taglib prefix="c" uri="/WEB-INF/tlds/c.tld"%>
<c:set var="BasePath" value="${pageContext.request.contextPath}"></c:set>
<c:set var="Plugins" value="${pageContext.request.contextPath}/res/plugins"></c:set>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>出库管理</title>
<link href="${Plugins}/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
<script src="${Plugins}/jquery/jquery-1.3.2.min.js"	type="text/javascript"></script>
<link href="${Plugins}/ligerUI/skins/ligerui-icons.css" rel="stylesheet" type="text/css" />
<script src="${Plugins}/ligerUI/js/ligerui.min.js" type="text/javascript"></script>
<script src="${Plugins}/datepicker/WdatePicker.js" type="text/javascript"></script>
<script src="${Plugins}/dateUtil.js" type="text/javascript"></script>

<script type="text/javascript" src="${BasePath}/res/js/ligerCommon.js"></script>
<!--打印插件-->
<script type="text/javascript" src="${Plugins}/Lodop6.215_CLodop2.090/LodopFuncs.js"></script>
<object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0>
	<embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0></embed>
</object>
<!--打印end-->
<style type="text/css">
#searchbar{
   margin-bottom: 10px;
   margin-left:15px;
  }
  input.l-textarea{width:170px;height:20px;font-size:12px;}
  td{
  	font-size:12px;
  }
  .navbar {
		height: 20px;
		border-bottom: #E6E6E6 solid 1px;
		line-height: 20px;
	}
.l-button-search {
	width: 50px;
	margin-left: 10px;
	padding-bottom: 2px;
	display: inline;
}
</style>
<style id="printStyle">
	/* 打印样式  */
	body{margin: 0px;}
	._wrapper{padding-top: 20px;}
	._p1,._p2{width:960px;margin: 0 auto;height:20px;padding-right: 10px;margin-bottom: 10px;}
	._p1 span{float: right;}
	._p2 p{float: right;}
	._buyer,._shop{width:960px;margin: 0 auto;padding: 10px 20px 0;}
	._comprador,._buyerName,._tel{margin-right: 10px;}
	._compradorName,._buyerName1{margin-right: 300px;}
	._address{display:inline-block;margin-top: 10px;}
	._wrapper table{border:2px dotted #ccc;width:960px;margin: 20px auto;border-collapse: collapse;border-spacing: 0;}
	._wrapper table td{border: 2px dotted #ccc;text-align: center;height:30px;}
	._wrapper ._colspan td{text-align: left;}
	._total{margin-left: 20px;margin-right: 140px;}
	._count,._freight,._money,.privilege{margin-right: 10px;}
	._count1,._freight1,.privilege1{margin-right: 146px;}
	.wang,.tel_{margin-right: 10px;}
	.wang1{margin-right: 100px;}
</style>
</head>
<body style="padding:6px; overflow:hidden;">
<div class="navbar">
		<span>您当前的位置：</span>
		出入库管理 &gt; 商品出库管理&gt; 出库&gt; 查看采购单
</div>
<form action="../../stockmanage/StockController/pageFinderStockOut.do" method="post" >
<div id="searchbar">
<br>
</div>
</form>
<div id="maingrid4" style="margin:0; padding:0"></div>
  <div style="display:none;">
  <!-- g data total ttt -->
</div>

<script>
    var basePath='${BasePath}';
	var tabId = window.top.tab.getSelectedTabItemID();
	var stockOutTypeNo ='${stockOutTypeNo}';
    var grid = null;
    $(function () {
    	var url = 'ajaxPageFinderStockOutPurInfo.do';
    	if(stockOutTypeNo != null && stockOutTypeNo != ""){
    		url += '?stockOutTypeNo=' + stockOutTypeNo + '&prodNo=${prodNo}';
    	}else{
    		url += '?stockOutProductId=${stockOutProductId}';
    	}
        grid = $("#maingrid4").ligerGrid({
            columns: [
            { display: '采购单号', name: 'purNo',width:120},
            { display: '商品名称', name: 'commoName',width:120},
            { display: '仓库名称', name: 'whName',width:120},
            { display: '供应商名称', name: 'supName',width:120},
            { display: '出库数量', name: 'stockoutQuantity'}
            ],
            pageSize:30,
            width: '100%',
            height: '100%',
            dataType: 'server', 
            dataAction: 'server',
            pagesizeParmName: 'pageSize',
            url: url
        });
    });
</script>
</body>
</html>